package com.eftimoff.ohosplayer.actions;

import ohos.agp.animation.Animator;
import ohos.agp.components.Component;

/**
 * Base Action with some mandatory fields.
 * <p/>
 * Created by georgi.eftimov on 4/15/2015.
 */
public abstract class BaseAction implements Action {

    private Component view;

    private int duration = 300;

    private int delay = 0;

    private boolean animateAlone;
    private int interpolator = Animator.CurveType.ACCELERATE;


    public BaseAction(final Component view) {
        this.view = view;
    }

    public Component getView() {
        return view;
    }

    public int getDuration() {
        return duration;
    }

    public int getDelay() {
        return delay;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public void setDelay(int delay) {
        this.delay = delay;
    }

    public boolean isAnimateAlone() {
        return animateAlone;
    }

    public void setAnimateAlone(boolean animateAlone) {
        this.animateAlone = animateAlone;
    }

    public int getInterpolator() {
        return interpolator;
    }

    public void setInterpolator(int interpolator) {
        this.interpolator = interpolator;
    }
}
